//
//  LAB_PictureCollectionViewCell.m
//  Camera
//
//  Created by Bodi on 16/8/11.
//  Copyright © 2016年 葛海一. All rights reserved.
//

#import "LAB_PictureCollectionViewCell.h"

@implementation LAB_PictureCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.imageView];
    }
    return self;


}
- (UIImageView *)imageView{
    if (!_imageView) {
        _imageView = [[UIImageView alloc]initWithFrame:self.bounds];
        _imageView.layer.borderColor = [UIColor orangeColor].CGColor;
    }
    return _imageView;


}
//选中,
- (void)setSelected:(BOOL)selected{
    [super setSelected:selected];
    //边框
    self.imageView.layer.borderWidth = selected ? 3 : 0;

}
@end
